package controller;

import java.util.HashMap;
import java.util.Map;

import com.opensymphony.xwork2.ActionSupport;

public class MenuAction extends ActionSupport{
	private Map<String, String> locationList;
	private Map<String, String> projectList;
	private Map<String, String> departmentList;

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	
	public Map<String, String> getProjectList() {
		return projectList;
	}
	public void setProjectList(Map<String, String> projectList) {
		this.projectList = projectList;
	}
	public Map<String, String> getDepartmentList() {
		return departmentList;
	}
	public void setDepartmentList(Map<String, String> departmentList) {
		this.departmentList = departmentList;
	}
	public Map<String, String> getLocationList() {
		return locationList;
	}
	public void setLocationList(Map<String, String> locationList) {
		this.locationList = locationList;
	}
	public String linkToHome() throws Exception{
		return "success";
	}
	public String linkToTransferNew() throws Exception{
		return "success";
	}
	public String linkToEmployeeManage() throws Exception{
		
		locationList = new HashMap<String, String>();
		projectList = new HashMap<String, String>();
		departmentList = new HashMap<String, String>();
		
		locationList.put("1", "tp.HCM");
		locationList.put("2", "Da Nang");
		locationList.put("3", "Quy Nhon");
		
		projectList.put("1","java");
		projectList.put("2","C#");
		projectList.put("3","iOS");
		
		departmentList.put("1","coder");
		departmentList.put("2","tester");
		departmentList.put("3","manager");
		
		return "success";
	}
	public String linkToProjectList() throws Exception{
		return "success";
	}
	public String linkToDepartmentList() throws Exception{
		return "success";
	}
	public String linkToLocationList() throws Exception{
		return "success";
	}
	public String linkToMyProfile() throws Exception{
		return "success";
	}

}
